package com.example.jizhang.demos.controller;

import com.example.jizhang.demos.mapper.AccountMapper;
import com.example.jizhang.demos.pojo.Account;
import com.example.jizhang.demos.resp.JsonResponseBody;
import com.example.jizhang.demos.service.AccountInfoService;
import com.example.jizhang.demos.service.AccountService;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 86195
 * 总账记录控制层
 */
@Log4j
@RestController
public class AccountController {

    @Autowired
    private AccountService accountService;


    /**
     * 查询总账
     * @return
     */
    @RequestMapping("/api/account-list")
    public JsonResponseBody getOne(){
        return JsonResponseBody.success(accountService.getOne());
    }


}
